import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询入库主单列表
export function listIbMaster(query) {
  return request({
    url: '/wms/ibMaster/list',
    method: 'get',
    params: query
  })
}

// 查询入库主单详细
export function getIbMaster(IbMasterId) {
  return request({
    url: '/wms/ibMaster/' + parseStrEmpty(IbMasterId),
    method: 'get'
  })
}

// 新增入库主单
export function addIbMaster(data) {
  return request({
    url: '/wms/ibMaster',
    method: 'post',
    data: data
  })
}

// 修改入库主单
export function updateIbMaster(data) {
  return request({
    url: '/wms/ibMaster',
    method: 'put',
    data: data
  })
}

// 删除入库主单
export function delIbMaster(IbMasterId) {
  return request({
    url: '/wms/ibMaster/' + IbMasterId,
    method: 'delete'
  })
}
